<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" charset="utf-8" src="../../static/announcements/ueditor/1.4.3/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../static/announcements/ueditor/1.4.3/ueditor.all.min.js"> </script>
    <script type="text/javascript" charset="utf-8" src="../../static/announcements/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../static/public_file/js/jquery.min.js"></script>
    <link rel="stylesheet" href="../../static/personal_center/font_2369197_oqktwkt71s/iconfont.css" media="screen">
    <script type="text/javascript" src="../../static/public_file/js/ModalBox.js"></script>
    <style>
        body, html {
            padding: 0px;
            margin: 0px;
            width: 100%;
            height: 100%;
        }
        .add_class{
            background: #1E90FF;
        }
        .add_background {
            background: #A9A9A9;
        }

        table {
            table-layout: fixed;
        }
        tr {
            height: 35px;
        }

        th {
            text-align: center;
        }

        .li-class {
            list-style: none;
            margin-top: 2%;
            color: #0b0b0b;
            cursor: pointer;
        }
        #Table td{
            text-align: center;
            border-bottom: #F2F2F2 solid 1px;
            /*overflow:hidden;*/
            /*white-space:nowrap;*/
            /*text-overflow:ellipsis;*/
            -o-text-overflow:ellipsis;
        }
        #Table1 td{
            text-align: center;
            border-bottom: #F2F2F2 solid 1px;
            overflow:hidden;
            white-space:nowrap;
            text-overflow:ellipsis;
            -o-text-overflow:ellipsis;
        }
        #Table2 td{
            text-align: center;
            border-bottom: #F2F2F2 solid 1px;
            overflow:hidden;
            white-space:nowrap;
            text-overflow:ellipsis;
            -o-text-overflow:ellipsis;
        }
        #Table3 td{
            text-align: center;
            border-bottom: #F2F2F2 solid 1px;
            overflow:hidden;
            white-space:nowrap;
            text-overflow:ellipsis;
            -o-text-overflow:ellipsis;
        }
        #t_table4 td{
            {#text-align: center;#}
            color: #0b0b0b;
            cursor: pointer;
            border-bottom: #F2F2F2 solid 1px;
            overflow:hidden;
            white-space:nowrap;
            text-overflow:ellipsis;
            -o-text-overflow:ellipsis;
        }
        #Table tr:hover{
            background: #D8D8D8;
            color: white;
        }
        #Table1 tr:hover{
            background: #D8D8D8;
            color: white;
        }
        #Table2 tr:hover{
            background: #D8D8D8;
            color: white;
        }
        #Table3 tr:hover{
            background: #D8D8D8;
            color: white;
        }
        #t_table4 tr:hover{
            background: #D8D8D8;
            color: white;
        }
        .top_tag {
            border-bottom: #01AAED solid 2px;
            color: #01AAED;
        }

        .tab_top {
            width: 100px;
            height: 40px;
            line-height: 40px;
            text-align: center;
            display: inline-block;
            cursor: pointer;
        }

        .search {
            width: 300px;
            display: flex;
            float: right;
            margin: 10px 0;
            margin-right: 1%;
            /*border: 1px solid red;*/
        }

        .search input {
            vertical-align: middle;
            float: left;
        / / 左浮动 flex: 4;
            height: 30px;
            width: 230px;
            outline: none;
            border: 1px solid #0070c1;
            box-sizing: border-box;
        / / 盒子模型，怪异IE盒子模型，width = content + border * 2 + padding * 2 padding-left: 10 px;
            border-bottom-left-radius: 3px;
            border-top-left-radius: 3px;
        }

        .search button {
            float: right;
            flex: 1;
            height: 30px;
            width: 70px;
            line-height: 30px;
            background-color: #0070c1;
            color: white;
            border-style: none;
            outline: none;
            border-bottom-right-radius: 3px;
            border-top-right-radius: 3px;
        }

        .search button i {
            font-style: normal;
        }

        .search button:hover {
            font-size: 16px;
        }

        .shadow_tab{
            box-shadow: #01AAED 0 0 10px;
        }
        .shadow_tab_1{
            width: 20%;height: 80px;border: #cfcfcf solid 1px;margin: 1%;display: inline-block;vertical-align: top;cursor: pointer;
        }
        .a_tag_cla{
            /*超出隐藏*/
            overflow: hidden;
            /*禁止换行*/
            white-space: nowrap;
            /*超出用省略号代替*/
            text-overflow: ellipsis;
        }
        .shade {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(36, 36, 36, 0.5);
            display: none;
            z-index: 10000;
        }
        #addForm1 {
            width: 800px;
            height: 620px;
            background: #F5F5F5;
            position: absolute;
            border: #dfdfdf solid 1px;
            margin: auto;
            border-radius: 3px;
            top: 50%;
            left: 50%;
            /* 实现鼠标拖拽使用css3效果 */
            transform: translate(-50%, -50%);
            z-index: 10100;
            font-size: 0;
        }
        #title {
            display: flex;
            justify-content: space-between;
            box-sizing: border-box;
            padding: 0 10px;
            height: 50px;
            color: #0b0b0b;
            cursor: move;
            /*border: #dfdfdf solid 1px;*/
            width: 100%;background: #f4f7fa;border-top-left-radius: 5px;border-top-right-radius: 5px;
        }
        .file {
            position: relative;
            display: inline-block;
            background: #D0EEFF;
            border: 1px solid #99D3F5;
            border-radius: 4px;
            padding: 4px 12px;
            overflow: hidden;
            color: #1E88C7;
            text-decoration: none;
            text-indent: 0;
            line-height: 20px;
        }
        .file input {
            position: absolute;
            font-size: 100px;
            right: 0;
            top: 0;
            opacity: 0;
        }
        .file:hover {
            background: #AADFFD;
            border-color: #78C3F3;
            color: #004974;
            text-decoration: none;
        }
        #loading { background: #fff url(../../static/public_file/images/jiazai.gif) no-repeat scroll center center; height: 100%; width: 100%; background-size: 10%; position: fixed; margin-top: 0px; top: 0px; left: 0px; bottom: 0px; overflow: hidden !important; right: 0px; z-index: 999999;background-color: rgba(255, 255, 255, 0.08);}

    </style>
</head>
<body>
    <div id="loading">
        <div id="loading-center">
        </div>
    </div>

    <div style="width: 100%;height: 40px;background: white;border-bottom: #cfcfcf solid 0.5px;line-height: 40px;color: black;">
        <div id="DW_tag" class="tab_top top_tag" onclick="change_mind('DW')">
            申请详情
        </div>

        <div id="XZ_tag" class="tab_top" onclick="change_mind('XZ')">
            审批详情
        </div>

        <div id="LH_tag" class="tab_top" onclick="change_mind('LH')">
            正文
        </div>

        <button onclick="modification_submission()" style="float: right;width: 100px;height: 30px;line-height: 30px;margin-top: 5px;border-radius: 3px;border: #1E90FF solid 0.5px;background-color: #1E90FF;color: white;cursor: pointer;margin-right: 15px;">提交</button>

        <div style="width: 110px;float: right;text-align: center;height: 40px;">
            <button style="line-height: 27px;border-radius: 3px;border: #1E90FF solid 0.5px;width: 100px;height: 30px;margin-top: 5px;background: #1E90FF;color: white;"><a href="javascript:history.go(-1)" style="color: white;">返回</a></button>
        </div>

        <button style="float: right;width: 100px;height: 30px;line-height: 30px;margin-top: 5px;border-radius: 3px;border: #1E90FF solid 0.5px;background-color: #1E90FF;color: white;cursor: pointer;" onclick="fill_val(ele_id='', func='', travel='', recipient='true')" >添加收阅人</button>
    </div>

    <div id="DW" style="width: 100%;height: 95%;background: white;"><!--startprint-->
        <div style="width: 100%;height: 100%;overflow: auto;">
            <div style="width: 100%;height: 100%;overflow: auto;">
                <table style="border-collapse: collapse;width: 90%;margin-left: 5%;margin-top: 20px;">
                    <tr style="width: 100%;">
                        <td colspan="6" style="width: 15%;height: 30px;line-height: 40px;border: #cccccc solid 1px;text-align: center;"><strong id="manuscript_title"></strong></td>
                    </tr>
                    <tr style="width: 90%;height: 40px;line-height: 40px;margin-left: 5%;background-color: #F5F5F5;color: #1E90FF;padding-left: 1%;border: #cccccc solid 1px;padding-right: 1%;">
                        <td colspan="6" style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: left;padding-left: 1%;border-top: none;">申请详情</td>
                    </tr>
                    <tr style="width: 100%;">
                        <td style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">拟稿科室</td>
                        <td id="ngks" style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;"></td>
                        <td style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">拟稿人</td>
                        <td id="ngr" style="width: 20%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;"></td>
                        <td style="width: 10%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">文号</td>
                        <td id="gwwh" style="width: 25%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;outline: none;border-top: none;"></td>
                    </tr>
                    <tr style="width: 100%;">
                        <td style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">标&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;题</td>
                        <td id="gwbt" colspan="5" style="width: 85%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;outline: none;" contenteditable="true"></td>
                    </tr>
                    <tr style="width: 100%;">
                        <td style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">印&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;份</td>
                        <td id="yf" colspan="5" style="width: 85%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;outline: none;" contenteditable="true"></td>
                    </tr>
                    <tr style="width: 100%;">
                        <td style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">主&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;送</td>
                        <td id="zs" colspan="5" style="width: 85%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;outline: none;" contenteditable="true"></td>
                    </tr>
                    <tr style="width: 100%;">
                        <td style="width: 15%;height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">抄&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;送</td>
                        <td id="cs" colspan="5" style="width: 85%;height: 40px;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;padding-left: 1%;" contenteditable="true"></td>
                    </tr>
                    <tr id="yj_tr" style="width: 100%;display: none;">
                        <td style="width: 15%;height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">依&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;据</td>
                        <td id="yjtd" colspan="5" style="width: 85%;height: 40px;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;padding-left: 1%;" contenteditable="true"></td>
                    </tr>
                    <tr style="width: 90%;height: 40px;line-height: 40px;margin-left: 5%;background-color: #F5F5F5;color: #1E90FF;padding-left: 1%;border: #cccccc solid 1px;padding-right: 1%;">
                        <td colspan="6" style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: left;padding-left: 1%;border-top: none;">审批详情</td>
                    </tr>
                    <tr id="fzrcs_tr" style="width: 100%;display: none;">
                        <td style="width: 15%;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;letter-spacing: 2.5px;">拟稿科室初审</td>
                        <td id="fzrcs" colspan="5" style="width: 85%;border: #cccccc solid 1px;border-left: none;border-top: none;padding-left: 1%;">
                            <div id="fzrcs_op" style="width: 100%;position: relative;display: none;">
                            </div>
                        </td>
                    </tr>
                    <tr style="width: 100%;">
                        <td style="width: 15%;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;letter-spacing: 1.5px;">党政办主任核稿</td>
                        <td id="zhuren" colspan="5" style="width: 85%;border: #cccccc solid 1px;border-left: none;border-top: none;padding-left: 1%;">
                            <div id="zr_leder" style="width: 100%;position: relative;display: none;">
                            </div>
                        </td>
                    </tr>
                    <tr style="width: 100%;">
                        <td style="width: 15%;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">分&nbsp;&nbsp;&nbsp;&nbsp;管&nbsp;&nbsp;&nbsp;&nbsp;领&nbsp;&nbsp;&nbsp;&nbsp;导</td>
                        <td id="fenguan" colspan="5" style="width: 85%;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;padding-left: 1%;">
                            <div id="fg_leder" style="width: 100%;position: relative;display: none;">
                            </div>
                        </td>
                    </tr>
                    <tr id="hq_tr" style="width: 100%;">
                        <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">会&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;签</td>
                        <td id="huiqian" colspan="5" style="width: 85%;height: 150px;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;padding-left: 1%;">
                            <div id="hq_leder" style="width: 100%;display: none;position: relative;">
                            </div>
                        </td>
                    </tr>
                    <tr style="width: 100%;">
                        <td style="width: 15%;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">签&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;发</td>
                        <td id="qianfa" colspan="5" style="width: 85%;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;padding-left: 1%;">
                            <div id="qf_leder" style="width: 100%;position: relative;display: none;">
                            </div>
                        </td>
                    </tr>
                    <tr style="width: 100%;font-size: 14px;line-height: 40px;">
                        <td style="height: 40px;border: #cfcfcf solid 1px;font-size: 14px;background-color: #F5F5F5;color: #1E90FF;padding-left: 1%;cursor: pointer;" colspan="6">
                            审阅文件
                            <a href="javascript:;" class="file" style="vertical-align: top;margin-top: 5px;float: right;">
                                上传文件
                                <input type="file" name="regular_main_body" id="regular_main_body" onchange="upload_accessory('file1', 'regular_main', 'regular_main_body')">
                            </a>
                        </td>
                    </tr>
                </table>
                <table style="width: 90%;margin-left: 5%;border-collapse: collapse;">
                    <thead>
                        <tr style="width: 100%;font-size: 14px;">
                            <td style="width: 5%;border: #cccccc solid 1px;text-align: center;height: 35px;border-top: none;">序号</td>
                            <td style="width: 20%;border: #cccccc solid 1px;border-left: none;text-align: center;height: 35px;border-top: none;">文件名称</td>
                            <td style="width: 20%;border: #cccccc solid 1px;border-left: none;text-align: center;height: 35px;border-top: none;">文件大小</td>
                            <td style="width: 20%;border: #cccccc solid 1px;border-left: none;text-align: center;height: 35px;border-top: none;">上传时间</td>
                            <td style="width: 20%;border: #cccccc solid 1px;border-left: none;text-align: center;height: 35px;border-top: none;">上传人员</td>
                            <td style="width: 15%;border: #cccccc solid 1px;border-left: none;text-align: center;height: 35px;border-top: none;">操作</td>
                        </tr>
                    </thead>
                    <tbody style="overflow: auto;" id="regular_main"></tbody>
                </table>
                <table style="width: 90%;margin-left: 5%;border-collapse: collapse;">
                    <tr style="width: 100%;font-size: 14px;line-height: 40px;">
                        <td style="height: 40px;border: #cfcfcf solid 1px;font-size: 14px;background-color: #F5F5F5;color: #1E90FF;padding-left: 1%;cursor: pointer;border-top: none;" colspan="6">
                            分发文件
                            <a href="javascript:;" class="file" style="vertical-align: top;margin-top: 5px;float: right;">
                                上传文件
                                <input type="file" name="regular_main_body1" id="regular_main_body1" onchange="upload_accessory('file2', 'regular_main1', 'regular_main_body1')">
                            </a>
                        </td>
                    </tr>
                </table>
                <table style="width: 90%;margin-left: 5%;border-collapse: collapse;">
                    <thead>
                        <tr style="width: 100%;font-size: 14px;">
                            <td style="width: 5%;border: #cccccc solid 1px;text-align: center;height: 35px;border-top: none;">序号</td>
                            <td style="width: 20%;border: #cccccc solid 1px;border-left: none;text-align: center;height: 35px;border-top: none;">文件名称</td>
                            <td style="width: 20%;border: #cccccc solid 1px;border-left: none;text-align: center;height: 35px;border-top: none;">文件大小</td>
                            <td style="width: 20%;border: #cccccc solid 1px;border-left: none;text-align: center;height: 35px;border-top: none;">上传时间</td>
                            <td style="width: 20%;border: #cccccc solid 1px;border-left: none;text-align: center;height: 35px;border-top: none;">上传人员</td>
                            <td style="width: 15%;border: #cccccc solid 1px;border-left: none;text-align: center;height: 35px;border-top: none;">操作</td>
                        </tr>
                    </thead>
                    <tbody style="overflow: auto;" id="regular_main1"></tbody>
                </table>
            </div>
        </div><!--endprint-->
    </div>

    <div id="XZ" style="width: 100%;height: 94%;background: white;display: none;">
        <div style="width: 100%;height: 15%">
            <div id="tab_4" class="shadow_tab shadow_tab_1" onclick="Change_tab(4)">
                <div style="width: 80px;padding-left: 10%;display: inline-block;vertical-align: top;margin-top: 15px;">
                    <img src="../../static/administrative/img/流程审批.png" alt="" style="width: 50px;height: 50px;">
                </div>
                <div style="padding-left: 2%;display: inline-block;vertical-align: top;">
                    <div style="height: 25px;">
                        <h5 id="approve_people_num" style="color: #01AAED;"></h5>
                    </div>
                    <div style="height: 25px;">审批详情</div>
                </div>
            </div>

            <div id="tab_1" class="shadow_tab_1" onclick="Change_tab(1)">
                <div style="width: 80px;padding-left: 10%;display: inline-block;vertical-align: top;margin-top: 15px;">
                    <img src="../../static/administrative/img/1人员管理.png" alt="" style="width: 50px;height: 50px;">
                </div>
                <div style="padding-left: 2%;display: inline-block;vertical-align: top;">
                    <div style="height: 25px;">
                        <h5 style="color: #01AAED;" id="total_number"></h5>
                    </div>
                    <div style="height: 25px;">收阅人次</div>
                </div>
            </div>

            <div id="tab_2" class="shadow_tab_1" onclick="Change_tab(2)">
                <div style="width: 80px;padding-left: 10%;display: inline-block;vertical-align: top;margin-top: 15px;">
                    <img src="../../static/administrative/img/查看.png" alt="" style="width: 50px;height: 50px;">
                </div>
                <div style="padding-left: 2%;display: inline-block;vertical-align: top;">
                    <div style="height: 25px;">
                        <h5 style="color: #00b7ee;" id="read_number"></h5>
                    </div>
                    <div style="height: 25px;">已查看</div>
                </div>
            </div>

            <div id="tab_3" class="shadow_tab_1" onclick="Change_tab(3)">
                <div style="width: 80px;padding-left: 10%;display: inline-block;vertical-align: top;margin-top: 15px;">
                    <img src="../../static/administrative/img/未查看.png" alt="" style="width: 50px;height: 50px;">
                </div>
                <div style="padding-left: 2%;display: inline-block;vertical-align: top;">
                    <div style="height: 25px;">
                        <h5 style="color: #e02107;" id="unread_number"></h5>
                    </div>
                    <div style="height: 25px;">未查看</div>
                </div>
            </div>
        </div>

        <div style="width: 100%;height: 80%;margin-top: 10px;">
            <div id="tab_four" style="width: 100%;height: 100%;overflow: auto;">
                <table style="border-collapse: collapse;width: 100%;table-layout: fixed;">
                    <thead>
                        <tr>
                            <th style="width: 10%;">节点</th>
                            <th style="width: 10%;">审批人</th>
                            <th style="width: 20%;">审批结果</th>
                            <th style="width: 20%;">审批意见</th>
                            <th style="width: 20%;">审批时间</th>
                            <th style="width: 20%;">签名</th>
                        </tr>
                    </thead>
                    <tbody style="overflow: auto;" id="Table">
                    </tbody>
                </table>
            </div>
            <div id="tab_one" style="width: 100%;height: 100%;display: none;overflow: auto;">
                <table style="border-collapse: collapse;width: 100%;table-layout: fixed;">
                    <thead>
                        <tr>
                            <th style="width: 25%;">接收人</th>
                            <th style="width: 25%;">状态</th>
                            <th style="width: 25%;">收阅时间</th>
                            <th style="width: 25%;">签名</th>
                        </tr>
                    </thead>
                    <tbody style="overflow: auto;" id="Table1">
                    </tbody>
                </table>
            </div>
            <div id="tab_two" style="width: 100%;height: 100%;display: none;overflow: auto;">
                <table style="border-collapse: collapse;width: 100%;table-layout: fixed;">
                    <thead>
                        <tr>
                            <th style="width: 25%;">接收人</th>
                            <th style="width: 25%;">状态</th>
                            <th style="width: 25%;">收阅时间</th>
                            <th style="width: 25%;">签名</th>
                        </tr>
                    </thead>
                    <tbody style="overflow: auto;" id="Table2">
                    </tbody>
                </table>
            </div>
            <div id="tab_three" style="width: 100%;height: 100%;display: none;overflow: auto;">
                <table style="border-collapse: collapse;width: 100%;table-layout: fixed;">
                    <thead>
                        <tr>
                            <th style="width: 25%;">接收人</th>
                            <th style="width: 25%;">状态</th>
                            <th style="width: 25%;">收阅时间</th>
                            <th style="width: 25%;">签名</th>
                        </tr>
                    </thead>
                    <tbody style="overflow: auto;" id="Table3">
                    </tbody>
                </table>
            </div>
        </div>
    </div>

    <div id="LH" style="width: 100%;height: 94%;background: white;display: none;">
        <div style="display: inline-block;width: 20%;vertical-align: top;height: 99%">
            <div style="width: 100%;" id="fujian_1">
                <div style="width: 100%;height: 40px;background: #c8cbcf;padding-left: 2%;line-height: 40px;color: #0c6fd9;">审阅文件</div>
                <div id="yt_zhengwen" style="width: 100%;">

                </div>
            </div>
            <div style="width: 100%;" id="fujian_2">
                <div style="width: 100%;height: 40px;background: #c8cbcf;padding-left: 2%;line-height: 40px;color: #0c6fd9;">分发文件</div>
                <div id="th_zhengwen" style="width: 100%;">

                </div>
            </div>
        </div>
        <div style="display: inline-block;width: 78%;vertical-align: top;height: 99%;text-align: center;" id="fujian">
            {% if 'jpg' in file_path or 'JPG' in file_path or 'JPEG' in file_path or 'jpeg' in file_path or 'PNG' in file_path or 'png' in file_path %}
                <img src="{{ file_path }}" alt="" style="width: 800px;height: 100%;">
            {% else %}
                <embed id="embed_file" src="{{ file_path }}" type="application/pdf" style="width: 100%;height: 100%;">
            {% endif %}
        </div>
    </div>

    <iframe id="iframe1" style="display: none"></iframe>

    <div id="addForm" class="shade">
        <div id="addForm1">
            <div id="title">
                <div style="width: 20%;margin-left: 1%;display: inline-block;font-size: 20px;">
                    <p style="margin-left: 1%;display: inline-block;font-size: 18px;">选择接收人员</p>
                </div>

                <div class="search" style="vertical-align: center;display: inline-block;text-align: right;margin-left: 35%;font-size: 14px;">
                    <input type="text" placeholder="请输入..." name="" id="search_data" value="">
                    <button id="search_button">搜索</button>
                </div>
                <span onclick="close_models1()" style="float: right;line-height: 50px;padding-right: 2%;cursor: pointer;"><i class="iconfont icon-quchu"></i></span>
            </div>
            <hr>
            <div style="display: inline-block;width: 30%;height: 350px;border-right: #E8E8E8 solid 1px;">
                <div style="width: 100%;height: 35px;line-height: 35px;padding-left: 2%;color: #0b0b0b;border-bottom: #cfcfcf solid 1px;font-size: 14px;">
                    <div id="an_branch"
                         style="width: 31.5%;display: inline-block;cursor: pointer;text-align: center;color: #01aaed;">
                        按部门
                    </div>
                    <div id="an_rank"
                         style="width: 31.5%;display: inline-block;cursor: pointer;text-align: center;">按权限
                    </div>
                    <div id="an_func"
                         style="width: 31.5%;display: inline-block;cursor: pointer;text-align: center;">按职能
                    </div>
                </div>
                <div id="department_list" style="width: 100%;height: 315px;overflow: auto;">
                    <div style="width: 100%;height: 100%;text-align: center;">
                        <img style="width: 30%;height: 30%;margin-top: 35%;"
                             src="../../static/public_file/images/jiazai.gif" alt="">
                    </div>
                </div>
            </div>

            <div style="display: inline-block;width: 69.5%;height: 350px;overflow: auto;vertical-align: top;left: 0;font-size: 14px;">
                <table class="table table-hover table-bordered" style="border-collapse: collapse;margin: 0;padding: 0;width: 100%;">
                    <thead style="width: 100%;">
                        <tr style="width: 100%;">
                            <th scope="col" style="width: 10%;height: 30px;border: #dfdfdf solid 1px;">
                                <input id="all_select_checkbox" type="checkbox">
                            </th>
                            <th scope="col" style="width: 20%;height: 30px;border: #dfdfdf solid 1px;">序号</th>
                            <th scope="col" style="width: 35%;height: 30px;border: #dfdfdf solid 1px;">姓名</th>
                            <th scope="col" style="width: 35%;height: 30px;border: #dfdfdf solid 1px;">工号</th>
                        </tr>
                    </thead>
                    <tbody style="overflow: auto;" id="t_table2"></tbody>
                </table>
                <div id="img-display1" style="width: 75%;text-align: center;">
                    <div style="margin-top: 10%;">
                        <img src="../../static/public_file/images/page-img/11.jpg" alt="">
                        <p style="margin: 0;padding: 0;vertical-align: top;">暂无数据</p>
                    </div>
                </div>
            </div>

            <div style="height: 150px;width: 100%;border-top: #E8E8E8 solid 1px;overflow: auto;">
                <div id="checked-label" style="margin-top: 1%;margin-left: 3%;width: 90%;font-size: 14px;">

                </div>
            </div>
            <hr>
            <div style="height: 70px;padding-right: 2%;font-size: 14px;">
                <button id="model-affirm" onclick="choose_people()" style="border-radius: 3px;height: 30px;float: right;margin-top: 15px;border: #1E90FF solid 1px;background: #1E90FF;color: white;">
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;提&nbsp;交&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                </button>
            </div>
        </div>
    </div>

    <script language="javascript" src="../../static/personal_center/js/jquery-1.4.4.min.js"></script>
    <script language="javascript" src="../../static/personal_center/js/jquery.jqprint-0.3.js"></script>
    <script>
        window.onload = function () {
            request_fun();
        };

        function request_fun() {
            var docement_id = window.location.href.split('id=')[1];
            document.getElementById("loading").style.display = "inline-block";
            var xhr = new XMLHttpRequest();
            var local_host = window.location.host;          // 获取当前IP
            xhr.open('get', "/administrative/conference_memo_detail_view?id="+docement_id, true);
            xhr.setRequestHeader('content-type', 'application/x-www-form-urlencoded');
            xhr.send();
            xhr.onreadystatechange = function () {
                if (xhr.readyState === 4) {
                    if (xhr.status === 200) {
                        document.getElementById("loading").style.display = "none";
                        var JsonDate = JSON.parse(xhr.responseText);
                        console.log(JsonDate)
                        if (JsonDate["data_dic"]["type"] === 'a'){
                            document.getElementById("manuscript_title").innerText="党委会议纪要";
                        }else if (JsonDate["data_dic"]["type"] === 'b'){
                            document.getElementById("manuscript_title").innerText="院长办公会会议纪要";
                        }else if (JsonDate["data_dic"]["type"] === 'c'){
                            document.getElementById("manuscript_title").innerText="党委专题会议纪要";
                        }else if (JsonDate["data_dic"]["type"] === 'd'){
                            document.getElementById("manuscript_title").innerText="院长办公会专题会议纪要";
                        }else if (JsonDate["data_dic"]["type"] === 'e'){
                            document.getElementById("manuscript_title").innerText="行政例会简报";
                            document.getElementById("hq_tr").style.display="none";
                        }else if (JsonDate["data_dic"]["type"] === 'f'){
                            document.getElementById("manuscript_title").innerText="行政公文";
                            document.getElementById("hq_tr").style.display="none";
                        }else if (JsonDate["data_dic"]["type"] === 'g'){
                            document.getElementById("manuscript_title").innerText="党委公文";
                            document.getElementById("hq_tr").style.display="none";
                        }else {
                            document.getElementById("manuscript_title").innerText="行政公文";
                            document.getElementById("hq_tr").style.display="none";
                        }

                        document.getElementById("ngks").innerText=JsonDate["data_dic"]["drafter_company"];
                        document.getElementById("ngr").innerText=JsonDate["data_dic"]["drafter"];
                        document.getElementById("gwwh").innerText=JsonDate["data_dic"]["document_number"];
                        document.getElementById("gwbt").innerText=JsonDate["data_dic"]["conference_memo_text"];
                        document.getElementById("yf").innerText=JsonDate["data_dic"]["servings"];
                        document.getElementById("zs").innerText=JsonDate["data_dic"]["main_company"];
                        document.getElementById("cs").innerText=JsonDate["data_dic"]["vice_company"];
                        if (JsonDate["data_dic"]['gist'] && JsonDate["data_dic"]['gist'] !== 'undefined') {
                            document.getElementById("yj_tr").style.display = "table-row";
                            document.getElementById("yjtd").innerText=JsonDate["data_dic"]["gist"];
                        }

                        if (JsonDate["data_dic"]["audit_list"].hasOwnProperty("C/D")){
                            var fzrcs_op = document.getElementById("fzrcs_op");
                            document.getElementById("fzrcs_tr").style.display="table-row";
                            for (var fzr=0; fzr<JsonDate["data_dic"]["audit_list"]["C/D"].length; fzr++){
                                if (JsonDate["data_dic"]["audit_list"]["C/D"][fzr]["state"] !== "待审核"){
                                    fzrcs_op.style.display="table";
                                    var fzrcs_div_tag_0 = document.createElement("div");
                                    var fzrcs_divTag = document.createElement("div");
                                    if (fzr !== JsonDate["data_dic"]["audit_list"]["C/D"].length-1){
                                        fzrcs_divTag.style.borderBottom="#cccccc solid 1px";
                                    }
                                    fzrcs_divTag.style.position="relative;";fzrcs_divTag.style.width="100%";
                                    var span_C_D = document.createElement("p");var span_C_D1 = document.createElement("p");
                                    span_C_D.innerText = JsonDate["data_dic"]["audit_list"]["C/D"][fzr]["state"];span_C_D1.innerText=JsonDate["data_dic"]["audit_list"]["C/D"][fzr]["audit_note"];
                                    fzrcs_div_tag_0.appendChild(span_C_D);fzrcs_div_tag_0.appendChild(span_C_D1);
                                    var fzrcs_div_tag_1 = document.createElement("div");
                                    fzrcs_div_tag_1.style.right="0";fzrcs_div_tag_1.style.width="300px";fzrcs_div_tag_1.style.height="60px";fzrcs_div_tag_1.style.color="#0b0b0b";fzrcs_div_tag_1.style.float="right";fzrcs_div_tag_1.style.textAlign="right";fzrcs_div_tag_1.style.lineHeight="60px";
                                    fzrcs_div_tag_1.innerText=JsonDate["data_dic"]["audit_list"]["C/D"][fzr]["audit_time"];
                                    var fzrcs_div_tag_2 = document.createElement("div");
                                    fzrcs_div_tag_2.innerHTML="<img style='width: 150px;height: 60px;' src='"+JsonDate["data_dic"]["audit_list"]["C/D"][fzr]["signature_picture"]+"'>";
                                    fzrcs_div_tag_2.appendChild(fzrcs_div_tag_1)
                                    fzrcs_divTag.appendChild(fzrcs_div_tag_0);fzrcs_divTag.appendChild(fzrcs_div_tag_2);fzrcs_op.appendChild(fzrcs_divTag);
                                }
                            }
                        }

                        if (JsonDate["data_dic"]["audit_list"].hasOwnProperty("YB/DB")){
                            var zr_leder = document.getElementById("zr_leder");
                            for (var A=0; A<JsonDate["data_dic"]["audit_list"]["YB/DB"].length; A++){
                                if (JsonDate["data_dic"]["audit_list"]["YB/DB"][A]["state"] !== "待审核"){
                                    zr_leder.style.display="table";
                                    var zr_div_tag_0 = document.createElement("div");
                                    var zr_divTag = document.createElement("div");
                                    if (A !== JsonDate["data_dic"]["audit_list"]["YB/DB"].length-1){
                                        zr_divTag.style.borderBottom="#cccccc solid 1px";
                                    }
                                    zr_divTag.style.position="relative;";zr_divTag.style.width="100%";
                                    var span_Y_D = document.createElement("p");var span_Y_D1 = document.createElement("p");
                                    span_Y_D.innerText = JsonDate["data_dic"]["audit_list"]["YB/DB"][A]["state"];span_Y_D1.innerText=JsonDate["data_dic"]["audit_list"]["YB/DB"][A]["audit_note"];
                                    zr_div_tag_0.appendChild(span_Y_D);zr_div_tag_0.appendChild(span_Y_D1);

                                    var zr_div_tag_1 = document.createElement("div");
                                    zr_div_tag_1.style.right="0";zr_div_tag_1.style.width="300px";zr_div_tag_1.style.height="60px";zr_div_tag_1.style.color="#0b0b0b";zr_div_tag_1.style.float="right";zr_div_tag_1.style.textAlign="right";zr_div_tag_1.style.lineHeight="60px";
                                    zr_div_tag_1.innerText=JsonDate["data_dic"]["audit_list"]["YB/DB"][A]["audit_time"];
                                    var zr_div_tag_2 = document.createElement("div");
                                    zr_div_tag_2.innerHTML="<img style='width: 150px;height: 60px;' src='"+JsonDate["data_dic"]["audit_list"]["YB/DB"][A]["signature_picture"]+"'>";
                                    zr_div_tag_2.appendChild(zr_div_tag_1);
                                    zr_divTag.appendChild(zr_div_tag_0);zr_divTag.appendChild(zr_div_tag_2);zr_leder.appendChild(zr_divTag);
                                }
                            }

                        }

                        if (JsonDate["data_dic"]["audit_list"].hasOwnProperty("YBL/DBL")){
                            var fg_leder = document.getElementById("fg_leder")
                            for (var Z=0; Z<JsonDate["data_dic"]["audit_list"]["YBL/DBL"].length; Z++){
                                if (JsonDate["data_dic"]["audit_list"]["YBL/DBL"][Z]["state"] !== "待审核"){
                                    fg_leder.style.display="table";
                                    var fg_div_tag_0 = document.createElement("div");
                                    var fg_divTag = document.createElement("div");
                                    if (Z !== JsonDate["data_dic"]["audit_list"]["YBL/DBL"].length-1){
                                        fg_divTag.style.borderBottom="#cccccc solid 1px";
                                    }
                                    fg_divTag.style.position="relative;";fg_divTag.style.width="100%";
                                    var span_YBL = document.createElement("p");var span_YBL1 = document.createElement("p");
                                    span_YBL.innerText = JsonDate["data_dic"]["audit_list"]["YBL/DBL"][Z]["state"];span_YBL1.innerText=JsonDate["data_dic"]["audit_list"]["YBL/DBL"][Z]["audit_note"];
                                    fg_div_tag_0.appendChild(span_YBL);fg_div_tag_0.appendChild(span_YBL1);

                                    var fg_div_tag_1 = document.createElement("div");
                                    fg_div_tag_1.style.right="0";fg_div_tag_1.style.width="300px";fg_div_tag_1.style.height="60px";fg_div_tag_1.style.color="#0b0b0b";fg_div_tag_1.style.color="#0b0b0b";fg_div_tag_1.style.float="right";fg_div_tag_1.style.textAlign="right";fg_div_tag_1.style.lineHeight="60px";
                                    fg_div_tag_1.innerText=JsonDate["data_dic"]["audit_list"]["YBL/DBL"][Z]["audit_time"];
                                    var fg_div_tag_2 = document.createElement("div");
                                    fg_div_tag_2.innerHTML="<img style='width: 150px;height: 60px;' src='"+JsonDate["data_dic"]["audit_list"]["YBL/DBL"][Z]["signature_picture"]+"'>";
                                    fg_div_tag_2.appendChild(fg_div_tag_1);
                                    fg_divTag.appendChild(fg_div_tag_0);fg_divTag.appendChild(fg_div_tag_2);fg_leder.appendChild(fg_divTag);
                                }
                            }

                        }

                        if (JsonDate["data_dic"]["audit_list"].hasOwnProperty("B")){
                            var hq_leder = document.getElementById("hq_leder");
                            for (var Y=0; Y<JsonDate["data_dic"]["audit_list"]["B"].length; Y++){
                                if (JsonDate["data_dic"]["audit_list"]["B"][Y]["state"] !== "待审核"){
                                    hq_leder.style.display="table";
                                    var divTag = document.createElement("div");
                                    if (Y !== JsonDate["data_dic"]["audit_list"]["B"].length-1){
                                        divTag.style.borderBottom="#cccccc solid 1px";
                                    }
                                    divTag.style.position="relative;";divTag.style.width="100%";
                                    var div_tag_0 = document.createElement("div");
                                    var span_B = document.createElement("p");var span_B1 = document.createElement("p");
                                    span_B.innerText = JsonDate["data_dic"]["audit_list"]["B"][Y]["state"];span_B1.innerText=JsonDate["data_dic"]["audit_list"]["B"][Y]["audit_note"];
                                    div_tag_0.appendChild(span_B);div_tag_0.appendChild(span_B1);
                                    var div_tag_1 = document.createElement("div");
                                    div_tag_1.style.right="0";div_tag_1.style.width="300px";div_tag_1.style.height="60px";div_tag_1.style.color="#0b0b0b";div_tag_1.style.float="right";div_tag_1.style.textAlign="right";div_tag_1.style.lineHeight="60px";
                                    div_tag_1.innerText=JsonDate["data_dic"]["audit_list"]["B"][Y]["audit_time"];
                                    var div_tag_2 = document.createElement("div");
                                    div_tag_2.innerHTML="<img style='width: 150px;height: 60px;' src='"+JsonDate["data_dic"]["audit_list"]["B"][Y]["signature_picture"]+"'>"
                                    div_tag_2.appendChild(div_tag_1)
                                    divTag.appendChild(div_tag_0);divTag.appendChild(div_tag_2);hq_leder.appendChild(divTag);
                                }
                            }

                        }

                        if (JsonDate["data_dic"]["audit_list"].hasOwnProperty("YZ/SJ")){
                            var qf_leder = document.getElementById("qf_leder");
                            for (var W=0; W<JsonDate["data_dic"]["audit_list"]["YZ/SJ"].length; W++){
                                if (JsonDate["data_dic"]["audit_list"]["YZ/SJ"][W]["state"] !== "待审核"){
                                    qf_leder.style.display="table";
                                    var qf_divTag = document.createElement("div");
                                    if (W !== JsonDate["data_dic"]["audit_list"]["YZ/SJ"].length-1){
                                        qf_divTag.style.borderBottom="#cccccc solid 1px";
                                    }
                                    qf_divTag.style.position="relative;";qf_divTag.style.width="100%";
                                    var qf_div_tag_0 = document.createElement("div");
                                    var span_YZ = document.createElement("p");var span_YZ1 = document.createElement("p");
                                    span_YZ.innerText = JsonDate["data_dic"]["audit_list"]["YZ/SJ"][W]["state"];span_YZ1.innerText=JsonDate["data_dic"]["audit_list"]["YZ/SJ"][W]["audit_note"];
                                    qf_div_tag_0.appendChild(span_YZ);qf_div_tag_0.appendChild(span_YZ1);

                                    var qf_div_tag_1 = document.createElement("div");
                                    qf_div_tag_1.style.right="0";qf_div_tag_1.style.width="300px";qf_div_tag_1.style.height="60px";qf_div_tag_1.style.color="#0b0b0b";qf_div_tag_1.style.float="right";qf_div_tag_1.style.textAlign="right";qf_div_tag_1.style.lineHeight="60px";
                                    qf_div_tag_1.innerText=JsonDate["data_dic"]["audit_list"]["YZ/SJ"][W]["audit_time"];
                                    var qf_div_tag_2 = document.createElement("div");
                                    qf_div_tag_2.innerHTML="<img style='width: 150px;height: 60px;' src='"+JsonDate["data_dic"]["audit_list"]["YZ/SJ"][W]["signature_picture"]+"'>";
                                    qf_div_tag_2.appendChild(qf_div_tag_1)
                                    qf_divTag.appendChild(qf_div_tag_0);qf_divTag.appendChild(qf_div_tag_2);qf_leder.appendChild(qf_divTag);
                                }
                            }

                        }

                        if (JsonDate["data_dic"]['file_list'].length){
                            document.getElementById("embed_file").setAttribute("src", JsonDate["data_dic"]['file_list'][0]["file_path"].replace("mediaTopics", "/media/Topics"));
                        }
                        uuid = JsonDate["data_dic"]["number"];

                        for (var fj = 0; fj < JsonDate["data_dic"]["file_list"].length; fj++) {
                            creat_table(JsonDate["data_dic"]["file_list"][fj]);
                        }

                        var yt_zhengwen = document.getElementById("yt_zhengwen");
                        var th_zhengwen = document.getElementById("th_zhengwen");
                        for (var d=0; d<JsonDate["data_dic"]['file_list'].length; d++){
                            var div_tag = document.createElement("div");div_tag.style.width="100%";div_tag.style.height="40px";div_tag.style.lineHeight="40px";
                            var a_tag = document.createElement("a");a_tag.setAttribute("href", "#");a_tag.className="a_tag_cla";
                            a_tag.innerText = JsonDate["data_dic"]['file_list'][d]["file_name"];a_tag.setAttribute("onclick", "chage_yulan(this, '"+JsonDate["data_dic"]['file_list'][d]["file_path"].replace("mediaTopics", "/media/Topics")+"')");
                            div_tag.appendChild(a_tag);
                            if (JsonDate["data_dic"]['file_list'][d]["file_type"] === "0") {
                                yt_zhengwen.appendChild(div_tag);
                            }else {
                                th_zhengwen.appendChild(div_tag);
                            }
                        }

                        CreateMyMine(JsonDate["data_dic"]["audit_list"]);
                        if (!JsonDate["data_dic"]["recive_people"].length){
                            document.getElementById("unread_number").innerText = "0 人";
                            document.getElementById("read_number").innerText = "0 人";
                            document.getElementById("total_number").innerText = "0 人";
                        }else {
                            create_recive_people(JsonDate["data_dic"]["recive_people"]);
                        }
                    }
                }
            };
        }

        function CreateMyMine(json_data) {
            if (json_data.length === 0){
                document.getElementById("img-display").style.display="inline-block";
            }
            deltr();
            var my_mine_body = document.getElementById("Table");
            var approve_number = 0
            if (json_data.hasOwnProperty("C/D")){
                for (var cd=0; cd<json_data["C/D"].length; cd++){
                    var cd_mine = document.createElement("tr");
                    var cdMind = document.createElement("td");var cdMind1 = document.createElement("td");var cdMind2 = document.createElement("td");var cdMind3 = document.createElement("td");var cdMind4 = document.createElement("td");var cdMind5 = document.createElement("td");
                    cdMind.innerHTML="初审";cdMind.style.textAlign="center";
                    cdMind1.innerHTML=json_data["C/D"][cd]["audit_user"];cdMind1.style.textAlign="center";
                    cdMind2.innerHTML=json_data["C/D"][cd]["state"];cdMind2.style.textAlign="center";
                    cdMind3.innerHTML=json_data["C/D"][cd]["audit_note"];cdMind3.style.textAlign="center";
                    cdMind4.innerHTML=json_data["C/D"][cd]["audit_time"];cdMind4.style.textAlign="center";
                    if (json_data["C/D"][cd]["signature_picture"]){
                        cdMind5.innerHTML="<img style='width: 100px;height: 40px;' src='"+json_data["C/D"][cd]["signature_picture"]+"'>";cdMind5.style.textAlign="center";
                    }else {
                        cdMind5.innerHTML="";cdMind5.style.textAlign="center";
                    }
                    approve_number += 1
                    cd_mine.appendChild(cdMind);cd_mine.appendChild(cdMind1);cd_mine.appendChild(cdMind2);cd_mine.appendChild(cdMind3);cd_mine.appendChild(cdMind4);cd_mine.appendChild(cdMind5);my_mine_body.appendChild(cd_mine);
                }
            }

            if (json_data.hasOwnProperty("YB/DB")){
                for (var A=0; A<json_data["YB/DB"].length; A++){
                    var tr_mine = document.createElement("tr");
                    var TdMind = document.createElement("td");var TdMind1 = document.createElement("td");var TdMind2 = document.createElement("td");var TdMind3 = document.createElement("td");var TdMind4 = document.createElement("td");var TdMind5 = document.createElement("td");
                    TdMind.innerHTML="核稿";TdMind.style.textAlign="center";
                    TdMind1.innerHTML=json_data["YB/DB"][A]["audit_user"];TdMind1.style.textAlign="center";
                    TdMind2.innerHTML=json_data["YB/DB"][A]["state"];TdMind2.style.textAlign="center";
                    TdMind3.innerHTML=json_data["YB/DB"][A]["audit_note"];TdMind3.style.textAlign="center";
                    TdMind4.innerHTML=json_data["YB/DB"][A]["audit_time"];TdMind4.style.textAlign="center";
                    if (json_data["YB/DB"][A]["signature_picture"]){
                        TdMind5.innerHTML="<img style='width: 100px;height: 40px;' src='"+json_data["YB/DB"][A]["signature_picture"]+"'>";TdMind5.style.textAlign="center";
                    }else {
                        TdMind5.innerHTML="";TdMind5.style.textAlign="center";
                    }
                    approve_number += 1
                    tr_mine.appendChild(TdMind);tr_mine.appendChild(TdMind1);tr_mine.appendChild(TdMind2);tr_mine.appendChild(TdMind3);tr_mine.appendChild(TdMind4);tr_mine.appendChild(TdMind5);my_mine_body.appendChild(tr_mine);
                }

            }

            if (json_data.hasOwnProperty("YBL/DBL")){
                for (var B=0; B<json_data["YBL/DBL"].length; B++){
                    var fg_mine = document.createElement("tr");
                    var fg_TdMind = document.createElement("td");var fg_TdMind1 = document.createElement("td");var fg_TdMind2 = document.createElement("td");var fg_TdMind3 = document.createElement("td");var fg_TdMind4 = document.createElement("td");var fg_TdMind5 = document.createElement("td");
                    fg_TdMind.innerHTML="复核";fg_TdMind.style.textAlign="center";
                    fg_TdMind1.innerHTML=json_data["YBL/DBL"][B]["audit_user"];fg_TdMind1.style.textAlign="center";
                    fg_TdMind2.innerHTML=json_data["YBL/DBL"][B]["state"];fg_TdMind2.style.textAlign="center";
                    fg_TdMind3.innerHTML=json_data["YBL/DBL"][B]["audit_note"];fg_TdMind3.style.textAlign="center";
                    fg_TdMind4.innerHTML=json_data["YBL/DBL"][B]["audit_time"];fg_TdMind4.style.textAlign="center";
                    if (json_data["YBL/DBL"][B]["signature_picture"]){
                        fg_TdMind5.innerHTML="<img style='width: 100px;height: 40px;' src='"+json_data["YBL/DBL"][B]["signature_picture"]+"'>";fg_TdMind5.style.textAlign="center";
                    }else {
                        fg_TdMind5.innerHTML="";fg_TdMind5.style.textAlign="center";
                    }
                    approve_number += 1
                    fg_mine.appendChild(fg_TdMind);fg_mine.appendChild(fg_TdMind1);fg_mine.appendChild(fg_TdMind2);fg_mine.appendChild(fg_TdMind3);fg_mine.appendChild(fg_TdMind4);fg_mine.appendChild(fg_TdMind5);my_mine_body.appendChild(fg_mine);
                }

            }

            if (json_data.hasOwnProperty("B")){
                for (var C=0; C<json_data["B"].length; C++){
                    var HQ_mine = document.createElement("tr");
                    var HQ_TdMind = document.createElement("td");var HQ_TdMind1 = document.createElement("td");var HQ_TdMind2 = document.createElement("td");var HQ_TdMind3 = document.createElement("td");var HQ_TdMind4 = document.createElement("td");var HQ_TdMind5 = document.createElement("td");
                    HQ_TdMind.innerHTML="会签";HQ_TdMind.style.textAlign="center";
                    HQ_TdMind1.innerHTML=json_data["B"][C]["audit_user"];HQ_TdMind1.style.textAlign="center";
                    HQ_TdMind2.innerHTML=json_data["B"][C]["state"];HQ_TdMind2.style.textAlign="center";
                    HQ_TdMind3.innerHTML=json_data["B"][C]["audit_note"];HQ_TdMind3.style.textAlign="center";
                    HQ_TdMind4.innerHTML=json_data["B"][C]["audit_time"];HQ_TdMind4.style.textAlign="center";
                    if (json_data["B"][C]["signature_picture"]){
                        HQ_TdMind5.innerHTML="<img style='width: 100px;height: 40px;' src='"+json_data["B"][C]["signature_picture"]+"'>";HQ_TdMind5.style.textAlign="center";
                    }else {
                        HQ_TdMind5.innerHTML="";HQ_TdMind5.style.textAlign="center";
                    }
                    approve_number += 1
                    HQ_mine.appendChild(HQ_TdMind);HQ_mine.appendChild(HQ_TdMind1);HQ_mine.appendChild(HQ_TdMind2);HQ_mine.appendChild(HQ_TdMind3);HQ_mine.appendChild(HQ_TdMind4);HQ_mine.appendChild(HQ_TdMind5);my_mine_body.appendChild(HQ_mine);
                }

            }

            if (json_data.hasOwnProperty("YZ/SJ")){
                for (var D=0; D<json_data["YZ/SJ"].length; D++){
                    var QF_mine = document.createElement("tr");
                    var QF_TdMind = document.createElement("td");var QF_TdMind1 = document.createElement("td");var QF_TdMind2 = document.createElement("td");var QF_TdMind3 = document.createElement("td");var QF_TdMind4 = document.createElement("td");var QF_TdMind5 = document.createElement("td");
                    QF_TdMind.innerHTML="签发";QF_TdMind.style.textAlign="center";
                    QF_TdMind1.innerHTML=json_data["YZ/SJ"][D]["audit_user"];QF_TdMind1.style.textAlign="center";
                    QF_TdMind2.innerHTML=json_data["YZ/SJ"][D]["state"];QF_TdMind2.style.textAlign="center";
                    QF_TdMind3.innerHTML=json_data["YZ/SJ"][D]["audit_note"];QF_TdMind3.style.textAlign="center";
                    QF_TdMind4.innerHTML=json_data["YZ/SJ"][D]["audit_time"];QF_TdMind4.style.textAlign="center";
                    if (json_data["YZ/SJ"][D]["signature_picture"]){
                        QF_TdMind5.innerHTML="<img style='width: 100px;height: 40px;' src='"+json_data["YZ/SJ"][D]["signature_picture"]+"'>";QF_TdMind5.style.textAlign="center";
                    }else {
                        QF_TdMind5.innerHTML="";QF_TdMind5.style.textAlign="center";
                    }
                    approve_number += 1
                    QF_mine.appendChild(QF_TdMind);QF_mine.appendChild(QF_TdMind1);QF_mine.appendChild(QF_TdMind2);QF_mine.appendChild(QF_TdMind3);QF_mine.appendChild(QF_TdMind4);QF_mine.appendChild(QF_TdMind5);my_mine_body.appendChild(QF_mine);
                }

            }
            document.getElementById("approve_people_num").innerText = String(approve_number) + " 人";
        }

        function create_recive_people(jsonData) {
            var total_number=0;var read_number = 0;var unread_number = 0;
            var Table1 = document.getElementById("Table1");
            var Table2 = document.getElementById("Table2");
            var Table3 = document.getElementById("Table3");
            for (var i=0; i<jsonData.length; i++){
                if (jsonData[i]["state"] === "未读"){
                    unread_number += 1;
                    no_recive(jsonData[i], Table3)
                }else {
                    read_number += 1
                    recive_people(jsonData[i], Table2);
                }
                total_number += 1
                document.getElementById("unread_number").innerText = String(unread_number) + " 人";
                document.getElementById("read_number").innerText = String(read_number) + " 人";
                document.getElementById("total_number").innerText = String(total_number) + " 人";
                all_recive(jsonData[i], Table1)
            }
        }

        // 所有收阅人
        function all_recive(recive_data, Table) {
            var tr = document.createElement("tr");
            var td = document.createElement("td");var td1 = document.createElement("td");var td2 = document.createElement("td");var td3 = document.createElement("td");
            td.innerHTML=recive_data["user"];td.style.textAlign="center";td1.style.textAlign="center";td3.style.textAlign="center";
            if (recive_data["state"] === "未读"){
                td1.innerHTML="未收阅";
            }else {
                td1.innerHTML="已收阅";
            }
            td2.innerHTML=recive_data["update_time"];td2.style.textAlign="center";
            if (!recive_data["signature_picture"] && recive_data["state"] !== "未读"){
                td3.innerHTML=recive_data["user"];
            }else if (recive_data["state"] !== "未读") {
                td3.innerHTML="<img style='width: 100px;height: 40px;' src='"+recive_data["signature_picture"]+"'>";
            }
            tr.appendChild(td);tr.appendChild(td1);tr.appendChild(td2);tr.appendChild(td3);Table.appendChild(tr);
        }

        // 已收阅
        function recive_people(recive_data, Table) {
            var tr = document.createElement("tr");
            var td = document.createElement("td");var td1 = document.createElement("td");var td2 = document.createElement("td");var td3 = document.createElement("td");
            td.innerHTML=recive_data["user"];td.style.textAlign="center";td1.style.textAlign="center";td3.style.textAlign="center";
            if (recive_data["state"] === "未读"){
                td1.innerHTML="未收阅";
            }else {
                td1.innerHTML="已收阅";
            }
            td2.innerHTML=recive_data["update_time"];td2.style.textAlign="center";
            if (!recive_data["signature_picture"] && recive_data["state"] !== "未读"){
                td3.innerHTML=recive_data["user"];
            }else if (recive_data["state"] !== "未读") {
                td3.innerHTML="<img style='width: 100px;height: 40px;' src='"+recive_data["signature_picture"]+"'>";
            }
            tr.appendChild(td);tr.appendChild(td1);tr.appendChild(td2);tr.appendChild(td3);Table.appendChild(tr);
        }

        // 未收阅
        function no_recive(recive_data, Table) {
            var tr = document.createElement("tr");
            var td = document.createElement("td");var td1 = document.createElement("td");var td2 = document.createElement("td");var td3 = document.createElement("td");
            td.innerHTML=recive_data["user"];td.style.textAlign="center";td1.style.textAlign="center";td3.style.textAlign="center";
            if (recive_data["state"] === "未读"){
                td1.innerHTML="未收阅";
            }else {
                td1.innerHTML="已收阅";
            }
            td2.innerHTML=recive_data["update_time"];td2.style.textAlign="center";
            if (!recive_data["signature_picture"] && recive_data["state"] !== "未读"){
                td3.innerHTML=recive_data["user"];
            }else if (recive_data["state"] !== "未读"){
                td3.innerHTML="<img style='width: 100px;height: 40px;' src='"+recive_data["signature_picture"]+"'>";
            }
            tr.appendChild(td);tr.appendChild(td1);tr.appendChild(td2);tr.appendChild(td3);Table.appendChild(tr);
        }

        // 删除列表
        function deltr(){
            var tb = document.getElementById('Table');
            var rowNum=tb.rows.length;
            for (i=0;i<rowNum;i++) {
                tb.deleteRow(i);
                rowNum=rowNum-1;
                i=i-1;
            }
        }

        function chage_yulan(this_, file_path) {
            var fujian = document.getElementById("fujian");
            var file_index = file_path.lastIndexOf(".")
            var ext = file_path.substring(file_index+1)
            var arr=['jpg', 'JPG', "JPEG", "jpeg", "PNG", "png"];
            var ext_index=arr.indexOf(ext);
            if (ext_index === -1){
                fujian.innerHTML = '<embed id="embed_file" src="'+file_path+'" type="" style="width: 100%;height: 100%;">'
            }else {
                fujian.innerHTML = '<img src="' + file_path + '" alt="application/pdf" style="width: 800px;height: 100%;">'
            }

            var a_tag_list = document.getElementsByClassName("a_tag_cla");
            for (var i = 0;i<a_tag_list.length; i++){
                a_tag_list[i].style.background='';
            }
            this_.style.background='#cfcfcf';
        }

        function change_mind(ele_id) {
            if (ele_id === "DW") {
                document.getElementById("DW").style.display = "inline-block";
                document.getElementById("DW_tag").className = "tab_top top_tag";
                document.getElementById("XZ_tag").className = "tab_top";
                document.getElementById("XZ").style.display = "none";
                document.getElementById("LH_tag").className = "tab_top";
                document.getElementById("LH").style.display = "none";
            }else if (ele_id === "XZ"){
                document.getElementById("XZ").style.display = "inline-block";
                document.getElementById("XZ_tag").className = "tab_top top_tag";
                document.getElementById("DW_tag").className = "tab_top";
                document.getElementById("DW").style.display = "none";
                document.getElementById("LH_tag").className = "tab_top";
                document.getElementById("LH").style.display = "none";
            }else {
                document.getElementById("LH").style.display = "inline-block";
                document.getElementById("LH_tag").className = "tab_top top_tag";
                document.getElementById("DW_tag").className = "tab_top";
                document.getElementById("DW").style.display = "none";
                document.getElementById("XZ_tag").className = "tab_top";
                document.getElementById("XZ").style.display = "none";
            }
        }

        function Change_tab(change_number) {
             if (change_number === 1){
                 document.getElementById("tab_1").className = "shadow_tab shadow_tab_1";
                 document.getElementById("tab_2").className = "shadow_tab_1";
                 document.getElementById("tab_3").className = "shadow_tab_1";
                 document.getElementById("tab_one").style.display = "inline-block";
                 document.getElementById("tab_two").style.display = "none";
                 document.getElementById("tab_three").style.display = "none";
                 document.getElementById("tab_4").className = "shadow_tab_1";
                 document.getElementById("tab_four").style.display = "none";
             }else if (change_number === 2){
                 document.getElementById("tab_1").className = "shadow_tab_1";
                 document.getElementById("tab_2").className = "shadow_tab shadow_tab_1";
                 document.getElementById("tab_3").className = "shadow_tab_1";
                 document.getElementById("tab_two").style.display = "inline-block";
                 document.getElementById("tab_one").style.display = "none";
                 document.getElementById("tab_three").style.display = "none";
                 document.getElementById("tab_4").className = "shadow_tab_1";
                 document.getElementById("tab_four").style.display = "none";
             }else if (change_number === 3){
                 document.getElementById("tab_1").className = "shadow_tab_1";
                 document.getElementById("tab_2").className = "shadow_tab_1";
                 document.getElementById("tab_3").className = "shadow_tab shadow_tab_1";
                 document.getElementById("tab_three").style.display = "inline-block";
                 document.getElementById("tab_two").style.display = "none";
                 document.getElementById("tab_one").style.display = "none";
                 document.getElementById("tab_4").className = "shadow_tab_1";
                 document.getElementById("tab_four").style.display = "none";
             }else {
                 document.getElementById("tab_1").className = "shadow_tab_1";
                 document.getElementById("tab_2").className = "shadow_tab_1";
                 document.getElementById("tab_3").className = "shadow_tab_1";
                 document.getElementById("tab_4").className = "shadow_tab shadow_tab_1";
                 document.getElementById("tab_four").style.display = "inline-block";
                 document.getElementById("tab_two").style.display = "none";
                 document.getElementById("tab_one").style.display = "none";
                 document.getElementById("tab_three").style.display = "none";
             }
         }

         // 上传正文
        function upload_accessory(file_type, tbody_id, accessory_type, bh_id) {
            document.getElementById("loading").style.display = "inline-block";
            var bill_id = window.location.href.split('id=')[1].replace("#", '')
            var form = new FormData();
            var files = document.getElementById(accessory_type).files[0];
            form.append(file_type, files);
            form.append('number', uuid);
            form.append('source', "gw");
            form.append('bill_id', bill_id);
            form.append('admin', "true");


            var xhr = new XMLHttpRequest();
            var local_host = window.location.host;          // 获取当前IP
            xhr.open('post', "/administrative/topics_attachments_upload", true);
            xhr.send(form);
            xhr.onreadystatechange = function () {
                if (xhr.readyState === 4) {
                    if (xhr.status === 200) {
                        document.getElementById("loading").style.display = "none";
                        var JsonDate = JSON.parse(xhr.responseText);
                        console.log(JsonDate);
                        if (JsonDate["code"] === 400){
                            alert("请上传xlsx格式文件！")
                        }
                        creat_table(JsonDate, tbody_id)
                    }
                }
            };
        }

        function creat_table(JsonData) {
            var t_table = document.getElementById("regular_main");
            var t_table1 = document.getElementById("regular_main1");
            var local_host = window.location.host;
            if (Array.isArray(JsonData["pdf_path"])){
                for (var i=0; i<JsonData["pdf_path"].length; i++){
                    var tr = document.createElement("tr");
                    var td1 = document.createElement("td");var td2 = document.createElement("td");var td3 = document.createElement("td");var td4 = document.createElement("td");var td5 = document.createElement("td");var td6 = document.createElement("td");
                    td1.innerHTML = t_table.children.length+1;td1.style.textAlign = "center";td1.style.border="#cccccc solid 1px";td1.style.borderTop="none";
                    td2.innerHTML = JsonData["file_name"];td2.style.paddingLeft = "1%";td2.style.border="#cccccc solid 1px";td2.style.borderLeft="none";td2.style.borderTop="none";
                    td3.innerHTML = JsonData["file_size"];td3.style.textAlign = "center";td3.style.border="#cccccc solid 1px";td3.style.borderLeft="none";td3.style.borderTop="none";
                    td4.innerHTML = JsonData["upload_time"];td4.style.textAlign = "center";td4.style.border="#cccccc solid 1px";td4.style.borderLeft="none";td4.style.borderTop="none";
                    td5.innerHTML = JsonData["uploader"];td5.style.textAlign = "center";td5.style.border="#cccccc solid 1px";td5.style.borderLeft="none";td5.style.borderTop="none";
                    td6.innerHTML = "<a target='_blank' href='"+JsonData["pdf_path"][i]["pdf_path"] + "'>查看</a> | <a style='color: red;' href='#' onclick='RemoveTr(this, \""+tbody_id+"\", \""+JsonData["pdf_path"][i]["id"]+"\")'>删除</a>";td6.style.textAlign = "center";td6.style.border="#cccccc solid 1px";td6.style.borderLeft="none";td6.style.borderTop="none";
                    tr.appendChild(td1);tr.appendChild(td2);tr.appendChild(td3);tr.appendChild(td4);tr.appendChild(td5);tr.appendChild(td6);
                    if (JsonData["file_type"] === "0") {
                        t_table.appendChild(tr);
                    }else {
                        t_table1.appendChild(tr);
                    }
                }
                if (JsonData["pdf_path"].length > 1){
                    document.getElementById("del_adjunct").style.display='block';
                }
            }else {
                var tr = document.createElement("tr");
                var td1 = document.createElement("td");var td2 = document.createElement("td");var td3 = document.createElement("td");var td4 = document.createElement("td");var td5 = document.createElement("td");var td6 = document.createElement("td");
                td1.innerHTML = t_table.children.length+1;td1.style.textAlign = "center";td1.style.border="#cccccc solid 1px";td1.style.borderTop="none";
                td2.innerHTML = JsonData["file_name"];td2.style.paddingLeft = "1%";td2.style.border="#cccccc solid 1px";td2.style.borderLeft="none";td2.style.borderTop="none";
                td3.innerHTML = JsonData["file_size"];td3.style.textAlign = "center";td3.style.border="#cccccc solid 1px";td3.style.borderLeft="none";td3.style.borderTop="none";
                td4.innerHTML = JsonData["upload_time"];td4.style.textAlign = "center";td4.style.border="#cccccc solid 1px";td4.style.borderLeft="none";td4.style.borderTop="none";
                td5.innerHTML = JsonData["uploader"];td5.style.textAlign = "center";td5.style.border="#cccccc solid 1px";td5.style.borderLeft="none";td5.style.borderTop="none";
                td6.innerHTML = "<a target='_blank' href='"+JsonData["pdf_path"] + "'>查看</a> | <a style='color: red;' href='#' onclick='RemoveTr(this, \"regular_main\", \""+JsonData["id"]+"\")'>删除</a>";td6.style.textAlign = "center";td6.style.border="#cccccc solid 1px";td6.style.borderLeft="none";td6.style.borderTop="none";
                tr.appendChild(td1);tr.appendChild(td2);tr.appendChild(td3);tr.appendChild(td4);tr.appendChild(td5);tr.appendChild(td6);
                if (JsonData["file_type"] === "0") {
                    t_table.appendChild(tr);
                }else {
                    t_table1.appendChild(tr);
                }
            }
        }

        function RemoveTr(_this, tbody_id, wj_id) {
            var table = document.getElementById(tbody_id);
            var trNode = $(_this).parent().parent();
            trNode.remove();

            for (var i=0; i<table.children.length; i++){
                table.children[i].children[0].innerHTML=i+1;
            }

            var xhr = new XMLHttpRequest();
            var local_host = window.location.host;          // 获取当前IP
            xhr.open('post', "/administrative/delete_attachments_view", true);
            xhr.setRequestHeader('content-type', 'application/x-www-form-urlencoded');
            xhr.send("id="+String(wj_id));
            xhr.onreadystatechange = function () {
                if (xhr.readyState === 4) {
                    if (xhr.status === 200) {
                        document.getElementById("loading").style.display = "none";
                        var JsonDate = JSON.parse(xhr.responseText);
                        console.log(JsonDate);
                        alert("删除成功！")
                    }
                }
            };
        }

        let title1 = document.querySelector("#title");
        let addForm1 = document.querySelector("#addForm1");
        title1.addEventListener("mousedown", function (e) {
            let x = e.pageX - addForm1.offsetLeft;
            let y = e.pageY - addForm1.offsetTop;


            document.addEventListener("mousemove", move);
            function move(e) {
                addForm1.style.left = e.pageX - x + 'px';
                addForm1.style.top = e.pageY - y + 'px';
            }

            document.addEventListener("mouseup", function (e) {
                document.removeEventListener("mousemove", move);
            })
        });

        function add_recipient(add_people) {
            var iss_id = window.location.href.split("id=")[1].replace("#", '');
            var xhr = new XMLHttpRequest();
            var local_host = window.location.host;          // 获取当前IP
            xhr.open('post', "/back-management/AddRecipient", true);
            xhr.setRequestHeader('content-type', 'application/x-www-form-urlencoded');
            xhr.send("id=" + String(iss_id)+"&add_people="+String(add_people));
            xhr.onreadystatechange = function () {
                if (xhr.readyState === 4) {
                    if (xhr.status === 200) {
                        document.getElementById("loading").style.display = "none";
                        var JsonDate = JSON.parse(xhr.responseText);
                        console.log(JsonDate);
                        if (JsonDate["code"] === 200) {
                            alert("添加成功！");
                            window.location.reload();
                        } else {
                            alert(JsonDate["message"]);
                        }
                    }
                }
            };
        }

        function modification_submission() {
            var gwbt = document.getElementById("gwbt").innerText;           // 公文标题
            var yf = document.getElementById("yf").innerText;             // 印份
            var zs = document.getElementById("zs").innerText;             // 主送
            var cs = document.getElementById("cs").innerText;                 // 收文日期
            var yjtd = document.getElementById("yjtd").innerText;
            var press_id = window.location.href.split("id=")[1]
            if (!gwbt){
                alert("标题不能为空！")
                return false
            }
            var t_table = document.getElementById('regular_main').childNodes.length;
            if (t_table === 0){
                alert("请上传正文！")
                return false
            }
            document.getElementById("loading").style.display = "inline-block";
            var send_str = "conference_memo_text="+String(gwbt)+"&servings="+yf+"&main_company="+zs+"&vice_company="+cs+"&id="+String(press_id)+"&yjtd="+yjtd;
            var xhr = new XMLHttpRequest();
            var local_host = window.location.host;          // 获取当前IP
            xhr.open('post', "/back-management/DocumentDetail.html", true);
            xhr.setRequestHeader('content-type', 'application/x-www-form-urlencoded');
            xhr.send(send_str);
            xhr.onreadystatechange = function () {
                if (xhr.readyState === 4) {
                    if (xhr.status === 200) {
                        document.getElementById("loading").style.display = "none";
                        var JsonDate = JSON.parse(xhr.responseText);
                        console.log(JsonDate);
                        alert("修改成功！")
                        window.location.reload();
                    }
                }
             };
        }

    </script>
</body>
</html>